package internetConnection;

import java.rmi.registry.LocateRegistry;
import java.rmi.registry.Registry;

public class ServerRunner {

	/**
	 * @param args
	 */
	public static void main(String[] args) {
		try{
			ServerRunnerInterface obj = new ServerRunnerInterfaceImpl();
			Registry registry = LocateRegistry.getRegistry();
			registry.rebind("ServerRunnerInterface", obj);
	        System.out.println("Server object " + obj + " registered");
		}catch(Exception ex){
			ex.printStackTrace();
		}

	}

}
